import { Component } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { Global } from '../../common/global';

/**
 * Generated class for the MaintabPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@IonicPage()
@Component({
  selector: 'page-maintab',
  templateUrl: 'maintab.html',
})
export class MaintabPage {
  mettinglist ="MettinglistPage";
  userlist="UserlistPage";
  my="MyPage";
  mymetting="MymettinglistPage";
  isAdmin:boolean = false;
  constructor(public navCtrl: NavController, public navParams: NavParams) {
    let usertype =  localStorage.getItem(Global.usertype);
    if(usertype=='1'){
      this.isAdmin = false;
    }else{
      this.isAdmin = true;
    }
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad MaintabPage');
  }
}
